package com.yykj.hospital.server.model.repository.form.template;

import com.yykj.hospital.server.model.entity.form.template.FormTrainDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FormTrainDetailRepository extends JpaRepository<FormTrainDetail,Integer> {
    List<FormTrainDetail> findAllByHospitalIdAndPid(Integer hospitalId, Integer pid);

    List<FormTrainDetail> findAllByPid(Integer pid);

    FormTrainDetail findFirstByPidAndName(Integer hospitalId,String name);


}
